<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>表单分组</title>
</head>
<body>
	<form action="">
		<fieldset>
			<legend>请选择个人爱好</legend>
			<input type="checkbox" name="like" id="" value="音乐" />音乐
			<input type="checkbox" name="like" id="" value="上网" checked/>上网
			<input type="checkbox" name="like" id="" value="足球" />足球
			<input type="checkbox" name="like" id="" value="下棋" />下棋
		</fieldset>
		<br />
		<fieldset>
			<legend>请选择个人课程选修情况</legend>
			<input type="checkbox" name="choice" value="computer"/>计算机<br />
			<input type="checkbox" name="choice" value="computer" checked/>离散数学<br />
			<input type="checkbox" name="choice" value="computer"/>高等数学<br />
		</fieldset>
	</form>
</body>
</html>